package com.ruoyi.system.mapper;

import java.util.List;
import java.util.Set;

import com.ruoyi.system.domain.DbIdentityManagement;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

/**
 * 四级联考递补身份验证Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
public interface DbIdentityManagementMapper 
{
    /**
     * 查询四级联考递补身份验证
     * 
     * @param id 四级联考递补身份验证主键
     * @return 四级联考递补身份验证
     */
    public DbIdentityManagement selectDbIdentityManagementById(Long id);

    /**
     * 查询四级联考递补身份验证列表
     * 
     * @param dbIdentityManagement 四级联考递补身份验证
     * @return 四级联考递补身份验证集合
     */
    public List<DbIdentityManagement> selectDbIdentityManagementList(DbIdentityManagement dbIdentityManagement);

    /**
     * 新增四级联考递补身份验证
     * 
     * @param dbIdentityManagement 四级联考递补身份验证
     * @return 结果
     */
    public int insertDbIdentityManagement(DbIdentityManagement dbIdentityManagement);

    /**
     * 修改四级联考递补身份验证
     * 
     * @param dbIdentityManagement 四级联考递补身份验证
     * @return 结果
     */
    public int updateDbIdentityManagement(DbIdentityManagement dbIdentityManagement);

    /**
     * 删除四级联考递补身份验证
     * 
     * @param id 四级联考递补身份验证主键
     * @return 结果
     */
    public int deleteDbIdentityManagementById(Long id);

    /**
     * 批量删除四级联考递补身份验证
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDbIdentityManagementByIds(Long[] ids);

    public int deleteAllIdentityManagement();

    int batchInsertDbIdentity(List<DbIdentityManagement> collect);

    // DbIdentityManagementMapper.java
    @MapKey("idCard")
    Set<String> selectExistingIdCards(@Param("idCards") List<String> idCards);

    List<DbIdentityManagement> selectIdentityManagementList(DbIdentityManagement failedDBIdentityall);
}
